package com.cxk.hr.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cxk.hr.dao.PermisMapper;
import com.cxk.hr.pojo.Permis;
import com.cxk.hr.service.PermisService;

/**
 * @Title: 权限实现类
 * @author: 84157
 */
@Service("permisService")
public class PermisServiceImpl implements PermisService {
	@Resource
	PermisMapper permismapper;

	@Override
	public List<Permis> selectPermissionsByRoleId(Integer id) {
		List<Permis> permis = permismapper.selectPermissionsByRoleId(id);
		return permis;
	}

	@Override
	public List<Permis> selectPermissionsByUserCode(String userCode) {
		List<Permis> permis = permismapper.selectPermissionsByUserCode(userCode);
		return permis;
	}

}
